//
//  SGJNetworkTools.h
//  Sewage
//
//  Created by 宗庆猛 on 2017/5/25.
//  Copyright © 2017年 宗庆猛. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AFNetworking.h>

// 继承自 AFHTTPSessionManager
@interface SGJNetworkTools : AFHTTPSessionManager

/**
 *  网络请求工具类全局访问点
 *
 *  @return AFHTTPSessionManager的实例
 */
+ (instancetype)sharedNetworkTool;

/**
 *  网络请求工具类GET请求的主方法
 */
/**
 创建请求方法
 */
- (void)requestWithURLString: (NSString *)URLString
                  parameters: (NSDictionary *)parameters
                      method: (NSString *)method
                    callBack: (void(^)(id responseObject))callBack;


#pragma mark - 登录注册模块
-(void)getVerifyCodeWithURLString: (NSString *)URLString
                       parameters: (NSDictionary *)parameters
                           method: (NSString *)method
                         callBack: (void(^)(id responseObject))callBack;


-(void)getSmsCodeWhenForgetPWDWithURLString: (NSString *)URLString
                                 parameters: (NSDictionary *)parameters
                                     method: (NSString *)method
                                   callBack: (void(^)(id responseObject))callBack;

-(void)registerWithURLString: (NSString *)URLString
                  parameters: (NSDictionary *)parameters
                      method: (NSString *)method
                    callBack: (void(^)(id responseObject))callBack;

-(void)resetPwdWithURLString: (NSString *)URLString
                  parameters: (NSDictionary *)parameters
                      method: (NSString *)method
                    callBack: (void(^)(id responseObject))callBack;

-(void)loginWithUrlString: (NSString *)URLString parameters: (NSDictionary *)parameters method: (NSString *)method callBack: (void(^)(id responseObject))callBack;

#pragma mark - 首页模块
-(void)loadHomeBannerWithUrlString: (NSString *)URLString parameters: (NSDictionary *)parameters method: (NSString *)method callBack: (void(^)(id responseObject))callBack;

-(void)loadHomeGrapOrderWithUrlString: (NSString *)URLString parameters: (NSDictionary *)parameters method: (NSString *)method callBack: (void(^)(id responseObject))callBack;

-(void)grabOrderWithUrlString: (NSString *)URLString parameters: (NSDictionary *)parameters method: (NSString *)method callBack: (void(^)(id responseObject))callBack;

-(void)loadTaskDetailByIdWithUrlString: (NSString *)URLString parameters: (NSDictionary *)parameters method: (NSString *)method callBack: (void(^)(id responseObject))callBack;
#pragma mark - 任务模块
-(void)loadCurrentTaskWithUrlString: (NSString *)URLString parameters: (NSDictionary *)parameters method: (NSString *)method callBack: (void(^)(id responseObject))callBack;
//放弃任务
-(void)quitTaskWithUrlString: (NSString *)URLString parameters: (NSDictionary *)parameters method: (NSString *)method callBack: (void(^)(id responseObject))callBack;
//开始巡检 - 加载巡检详情数据
-(void)examineTaskWithUrlString: (NSString *)URLString parameters: (NSDictionary *)parameters method: (NSString *)method callBack: (void(^)(id responseObject))callBack;

-(void)routingInspectionWithUrlString: (NSString *)URLString parameters: (NSDictionary *)parameters method: (NSString *)method callBack: (void(^)(id responseObject))callBack;



@end
